package com.prs.crm.service.hr;

import java.util.List;

import com.prs.crm.domain.hr.Role;
import com.prs.crm.domain.sys.Menu;
import com.prs.crm.service.BaseService;

public interface RoleService extends BaseService<Role>{
	
	void grant(Role role,String[] moduleids);
	
	void grantMenu(Role role,String[] menuids);
	
	void grantMenuByRootMenu(Role role,Menu rootMenu,String[] checkedMenuIds, String[] uncheckedMenuIds);
	
	public List<Role> getAllRoles();
	
	Role getByNameRole(String name);
	
}
